package com.example.springbootdemo.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: ShengXiaJia
 * @Date: 2019/12/17 14:37
 * @Description: 自定义配置类
 */
@Component
public class Customize {

    public static String path;

    public static String level;

    public static String day;

    @Value("${customize.logging.path}")
    public void setPath(String path) {
        Customize.path = path;
    }

    @Value("${customize.logging.level}")
    public void setLevel(String level) {
        Customize.level = level;
    }

    @Value("${customize.logging.day}")
    public void setDay(String day) {
        Customize.day = day;
    }

}
